import request from '@/utils/request'

export function queryRouteList() {
    return request({
        url: '/gateway/config/route/list',
        method: 'get',
    })
}


export function createRoute(data) {
    return request({
        url: '/gateway/config/route/add',
        method: 'post',
        data: data
    })
}


export function updateRoute(data) {
    return request({
        url: '/gateway/config/route/update',
        method: 'put',
        data: data
    })
}

export function delRoute(query) {
    return request({
        url: '/gateway/config/route/del',
        method: 'delete',
        params: query
    })
}
